
/* Testimonial carousel */

.testimonials {
    min-height: 200px;
    margin: 50px 0 0 0;
}

.heading {
    text-align: center;
    color: var(--tp-heading-primary);
    font-size: 36px;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.section-borders {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.section-borders span {
    height: 5px;
    background: var(--tp-theme-2);
    width: 50px;
    display: inline-block;
    border-radius: 2px;
}

.section-borders span.black-border {
    background: var(--tp-common-black);
    width: 30px;
    margin: 0 6px;
}

.carousel_testimonial {
    width: 100%;
    position: relative;
}

/* testimonial video */

.video-box {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    height: calc(500px - 350 * ((100vh - 800px) / (300 - 800)));
}

.player {
    width: 80%;
    border: 0.25rem solid var(--grey70-50);
    position: relative;
    font-size: 0;
    overflow: hidden;
    z-index: 1;
}

.player_video {
    width: 100%;
    cursor: pointer;
}

.fa {
    color: var(--white);
    font-size: 4rem;
}

.fa-play:hover,
.fa-pause:hover {
    color: var(--rosewood);
    cursor: pointer;
}

.player_button {
    background: none;
    border: 0;
    line-height: 1;
    color: white;
    text-align: center;
    outline: 0;
    padding: 5px;
    cursor: pointer;
    max-width: 50px;
    max-height: 50px;
    font-size: 2rem;
}

.player_controls {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: all 0.3s;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.329);
    padding: 0 1.5rem;
}

.right-controls {
    display: flex;
    justify-content: flex-end;
}

.left-controls {
    display: flex;
    justify-content: flex-start;
}

.player_controls>* {
    flex: 1;
}

.progress-range {
    flex: 10;
    position: relative;
    display: flex;
    flex-basis: 100%;
    height: 0.75rem;
    transition: height 0.3s;
    background: var(--tp-heading-primary);
    cursor: pointer;
}

.progress-bar-range {
    background: var(--tp-theme-primary) !important;
    width: 50%;
    height: 100%;
    transition: all 250ms ease;
}

.time {
    text-align: right;
    position: relative;
    top: 0;
    padding-left: 0.5em;
    margin-right: 1em;
    color: var(--tp-common-white);
    font-weight: 600;
    font-size: 1rem;
}

.video-box .information {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.video-box .information .image-circular {
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    width: calc(100px - 60 * ((100vw - 1600px) / (500 - 1600)));
    height: auto;
    box-shadow: 0px 0px 5px var(--black-50);
    border: 2px solid var(--white);
    aspect-ratio: 1/1
}

.video-box .information .image-circular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-box .information .title {
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: calc(8px + (10) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 600;
    color: var(--darkBlue);
    background-color: var(--white-50);
    padding: calc(8px - 60 * ((100vw - 1600px) / (500 - 1600))) 10px;
    border-radius: 5px;
    margin-left: 15px;
}

.custom-prev-btn,
.custom-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--rosewood-90);
    color: #fff;
    font-size: 36px;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out;
    z-index: 2;
}

.custom-prev-btn {
    left: 10px;
}

.custom-next-btn {
    right: 10px;
}

.custom-prev-btn:hover,
.custom-next-btn:hover {
    background-color: var(--rosewood);
}

/* testimonial photo */

.testimonial_photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    height: calc(500px - 350 * ((100vh - 800px) / (300 - 800)));
}

.testimonial_photo .description_testimonial,
.testimonial_photo .image_testimonial {
    width: 50%;
    min-height: 100%; /* Modificado aquí */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Añadido aquí */
    position: relative;
}

.testimonial_photo .image_testimonial::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /*  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
    z-index: 1;
}

.testimonial_photo .description_testimonial .title_textimonial{
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 600;
    align-items: flex-start;
    overflow: auto;
    padding: 10px;
}

.testimonial_photo .description_testimonial .text_textimonial{
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 600;
    align-items: flex-start;
    overflow: auto;
    padding: 10px;
}

.testimonial_photo .image_testimonial img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media screen and (max-width: 750px) {
    .testimonial_photo {
        flex-direction: column-reverse;
    }

    .testimonial_photo .description_testimonial,
    .testimonial_photo .image_testimonial {
        width: 100%;
        min-height: 50%; /* Modificado aquí */
        align-items: normal;
    }

    /* Hace el gradiente lateral completamente transparente en lugar de eliminarlo */
    .testimonial_photo .image_testimonial::after {
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%);
    }

    /* Añade un desvanecimiento hacia abajo para pantallas pequeñas */
    .testimonial_photo .image_testimonial::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); */
        z-index: 1; /* Asegúrate de que el pseudo-elemento se sitúa por encima de la imagen */
    }
}
